/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data;

import control.bean.ControlPropertiesBean;
import java.io.File;
import java.util.ArrayList;

/**
 *
 * @author Minsk
 */
public class FormTemplateManager {
    
    private FormTemplateParser parser;
    
    public FormTemplateManager() {
        parser = new FormTemplateParser();
    }
    
    public ArrayList<ControlPropertiesBean> loadTemplate(String id) {
        ArrayList<ControlPropertiesBean> template = parser.load();
        return template;
    }
    
    public boolean saveTemplate(String id, ArrayList<ControlPropertiesBean> template) {
        return parser.save(template);
    }
    
    public void setFormTemplatePath(File file) {
        parser.setTemplateFile(file);
    }
    
}
